package com.pxmeta.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pxmeta.user.entity.UserBlock;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wcl
 * @since 2022-07-13
 */
public interface IUserBlockService extends IService<UserBlock> {

    /**
     * 拉黑用户
     * @param userId
     * @param blockUserId
     */
    void blockUser(Long userId, Long blockUserId);

    /**
     * 查询是否拉黑
     * @param currentUserId
     * @param blockUserId
     * @return
     */
    UserBlock isBlock(Long currentUserId, Long blockUserId);


    /**
     * 解除拉黑
     * @param userId
     * @param blockUserId
     */
    void unBlockUser(Long userId, Long blockUserId);
}
